﻿using System;
using System.Linq;

namespace Model
{
  public static class DllHelper
  {

    public static Type[] GetDllTypes()
    {
      ILRuntime.Runtime.Enviorment.AppDomain appDomain = Init.Instance.AppDomain;
      if (appDomain == null)
      {
        return new Type[0];
      }

      return appDomain.LoadedTypes.Values.Select(x => x.ReflectionType).ToArray();
    }

  }
}
